package t327.pojo.staff;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StaffManagement {
  //当前实际时间
  LocalDate currentDate = LocalDate.now();

  private Long staffId;
  private String staffName;
  private Long staffAge;
  private Integer staffSex;
  private String staffIdentityCard;
  private Long staffPhone;
  private Long staffType;
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date staffEntryTime = new Date();
  @JsonFormat(pattern = "yyyy-MM-dd ")
  private Date staffResignationTime;
  private Long staffDepartmentId;
  private final Long staffStatus=1L;
  private String staffImg;
  private String staffEducationBackground;
  private String staffBankCard;
  private Long staffPosition;
  //推迟30天的时间
  private final LocalDate futureDate30 = currentDate.plusDays(30);
  //推迟3天的天数
  private final LocalDate futureDate3 = currentDate.plusDays(3);


}
